#include "StdAfx.h"
#include "Main.h"

#include "MainFrame.h"


CManagerApplication _Application;


BOOL CManagerApplication::InitInstance()
{
	if (!CWinApp::InitInstance())
	{
		return FALSE;
	}

	CMainFrame *pMainFrame = new CMainFrame();
	if (pMainFrame == NULL)
	{
		return FALSE;
	}

	if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
	{
		delete pMainFrame;
		return FALSE;
	}

	m_pMainWnd = pMainFrame;
	pMainFrame->ShowWindow(m_nCmdShow);

	OnFileNew();
	return TRUE;
}
